// 设置本地存储
export function setData(key: string, value: any) {
    return window.localStorage.setItem(key, value)
}

// 获取本地存储
export function getData(key: string) {
    return window.localStorage.getItem(key)
}

// 删除本地存储
export function removeData(key: string) {
    return window.localStorage.removeItem(key)
}

export function clearAllData() {
    return window.localStorage.clear()
}

